package net.gcmz.zrqblog.entity;

import static javax.persistence.GenerationType.IDENTITY;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.apache.commons.lang.builder.ToStringBuilder;


/**
 * 
 * 用户实体类
 * 
 * @author  zhangrongquan
 * @version  [版本号, 2014-12-11]
 *
 */
@Entity
@Table(name = "tb_user")
public class User implements Serializable {
	private static final long serialVersionUID = -4919369219071281344L;
	private Long id;

	public User() {
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	// 用户名
	private String name;

	// 密码
	private String password;

	// 显示名称
	private String showName;

	// Email
	private String email;

	// 描述
	private String description;

	// 图片URL
	private String image;


	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getShowName() {
		return showName;
	}

	public void setShowName(String showName) {
		this.showName = showName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}